using GalaSoft.MvvmLight.Ioc;
using Microsoft.Practices.ServiceLocation;

namespace FastestWays.Helpers
{
    public static class AppServicesLocator
    {
        static AppServicesLocator()
        {
            SimpleIoc.Default.Register<IMessageHandler, MessageHandler>();
        }

        public static IMessageHandler MessageHandler
        {
            get
            {
                return ServiceLocator.Current.GetInstance<IMessageHandler>();
            }
        }
    }
}